cleanup
add protocol pdf

this is taken as a backup from https://github.com/Crosenhain/ginlong_poller
more code cleanup