Moved some error checking as well as updated the readme.