revert code formatting and add only additional javaDoc.