The source project of this merge request has been removed.
Completely restructured
Put everything into functions to improve overall structure, readability and maintainability. ToDo still: Further compartmentalise and de-uglify components of main() function.