Modified Parser.py extensively in order to make it more object oriented.