Added lots of JavaDoc to the parser.