Added reading header function
edited parsing.py