Code cleanups
Also added export data about mouse and keyboard to sysfs.