Add ability to set error messages for SyntaxExceptions. Closes #3