parser.py: Updating error() method
parser.py: Updating comments
parser.py: Updating goal method