added csv test file. added tests for csv import. fixed bugs.