Added averages calculations to init.py, updated .gitignore.