made output prettier, and added ability to recored errors to disk