Code cleanup

Moved main program execution inside a “if main” block
Changed all prints to consistently use string.format
Changed CSV output code to be scalable

Laying groundwork for supporting TAS as an optional field rather than
hard coded
TAS data is now optional in the IGC

We no longer always expect TAS data - the script checks the I record to
see what optional fields exist and handles it properly.