Fix typo in readinfo. Add .gitignore file and ignore __pycache__.