Reformating and adding java docs