Fix trailing comma
Improve error msg
Add parser tests
Add setup.py