Fixed the function call and some whitespace and typo inconsistency
Merge pull request #27 from Camwyn/warn-fix

Fixed the function call and some whitespace and typo inconsistency