Add javadac and some change code formats