fixed some issues and added .gitignore.