Error fixes and documentation update

Updated error throwing and returns
Adds functionality to queryRow
Updated documentation