Added javadoc and gitignore.