Added simple error output management, improved user-defined exception creation