fixed major bugs, added terminal usage, added .gitignore