Support for optional 'Median' risk level, diagram layout improvements, error handling improvements

Support for optional 'Median' risk level in the 'Basic format'; Better handling and reporting of errors or missing information in the input files; some additional layout options for the generated diagrams.