removed convert function in favor of decode functions. Added csv decoding