Fix typo in comment, code formatting, return type consistency