Optimize codebase, implement new feature

- Add new feature: shake the device to clear the screen.