fixed a few bugs
added unit testing for parser
add comments and tags