Merge pull request #1 from alus-/master

Makefile adapted to work also under Windows
BUGFIX:
avoid collission between TX and RX buffers
update factors for wire-protocol
centralise state-changes into one fnction