Updated documents, reformated some code.
Update Java version