removed closing ?> tag to conform with PSR-2 standards and to avoid whitespace issues
added method visibility
removed some duplicated code
don't clear params when using bulkParam