Add code/psuedocode for use in formatting

Added a few variations of code/pseudocode to get the max number of
chars in each row, later column width can be set to that and the
CSV can be displayed pretty as output of the script.