Fixes #52 parse error in the stdlib
Improvements to error messages to give more context
Address comments from #54