implemented parser.read and parser.formatting_valid? methods
added comments to parser