adding error test and changes to readme