Updated formatting and java docs