fix typo in readme
add simple error checkers