Added Javadocs and .gitignore.