Some rewriting and refactoring

Changed the protocol a bit (dropped the separator byte, power goes up to
255 instead of 127), implemented packet checking.