Issue #132
Added message logging. Detects command type, but nothing else yet.