added "quiet" boolean for debug messages, renamed some error types to "error" rather than "debug"