documented header.py and made some changes