Fixed documentation
fixed CS

Updated coding standard to PSR-2
fixed CS issues and typos
updated docs
changed fetch() and fetchAll() signature to an array of parameters for flexibility in the future