Tests for #13
Implement #13
update API calls
Test proper encoding of message type for #13
raise version number