Some changes.
Adds some java docs.