Changed CSV parsing to use Ruby CSV library. Resolves #1