Fixed some small bugs in csv2dict. Added more functionality to main function