added fieldnames to csv reader, removed typcasting