changed error output to string
fixed quotes
test fixes and more cleanup