Updated .gitignore, docs, index.php
Changed variable name in method