Added CSV functionality. Only issue is with encoding now, it seems.