removed duplicate code / added package-info.java / added comments / added doc to gitignore