overloads; improved error handling

- quote functions overloads;
- improved server error handling;
- trimmed output;
- improved sample.