fixed error class
added a .gitignore file