Cleanup

1. Removed redundant code.
2. Removed intellj project file.
3. Adding .gitignore file.