Fixed the function call and some whitespace and typo inconsistency