Fix method documentation
Fix code formatting