* start implementing device actions * rename file * cleanup and add tests * fix docstrings * sort imports