Add basic message parsing and fix stringify macro