fix trying to parse files without correct filename extension
return errors from parser rather than force printing them
drastically improve parser testing
fix typo
add doc strings to parser