Got text and error handlers working
Fixing error handling
Location could be better
Encoding a little better