Added JavaDocs and .gitignore

Looks good! I'm contributing  a patch that updates the JavaDocs a bit and also adds a .gitignore file.