moved error functions
zs_error now takes only one arg
added printf-style zs_error