test
Fix error where \r\n was causing extra empty lines to be written to csv
Remove redundant unused variables some redundant commented out code, add snippet to count the rows
converted snippet to a function
rename variables and methods to python coding standards
More tidying up, no func change
split main() func into a separate method, should still work
Add stubs for new methods to add additional columns and data