Fixed spelling errors, spaces rather than tabs (sorry), fixed missing PHPDoc parameters