new directory structure. adding error class to write errors and warnings to files so the output can be nicely generated