Added comments to parser for better readability.