Remove doc/ directory

The documentation directory was removed, because it was unnecessary and not up to date. It can be built via Javadoc.
Add .gitignore file

This file ignores Java, JetBrains and OSX generated files.