Prettification of code

Cleaned up code so that it conforms to PEP guidelines
Added eqref to ref/ citaiton check
Added gitignore removed pyc files