Removed a class which was only used to test some byte shifting and stuff like that.
Removed unneeded imports. Implemented polling correctly.
Improved logging for easier development / debugging.