Remove man page
Add xcuserstate and swp to gitignore
Rewrite to extract device code to class