added csv reading functionality