updated error codes
updated readme examples