Added git ignore
Code cleanup
Tested with Java 8