minor doc changes
Add error checks