Added Message id, message and payload methods
typo fix
Fixes to work right as modules, plus changes to match rules.
test driver program plus lib containing first tests.