more plots, some additional output files and a bit of restructuring and error handling improvements.