java docing and code formatting