fixed & commended .gitignore file
fixed error handling