rework of main function
issue #1: now settings can be changed from outside,
issue #2: column headings & line labels can be set at the same time
issue #3: layout is flexible
issue #5: code cleanup...