fixed if bugs - bash syntax now :-)
CSV output to STDOUT works, inlcuding section headingsw
Added running number for card sorting and cleaned up name output