Delete csv
Bug fix in -main
Refactor code