Updates some documentation and error logging