Fix comments and add .gitignore for Java