made some changes to messenger.py:  added code to adapt to max's weird USB issue, modified end-of-module test