fixed typos in README.md file
corrected function braces to conform with PSR-2