Bug fix: keyAtIndex now works properly.
Added functions for outputting optional error messages.
New functions for outputting boolean values as text, pretty printing strings, and handling malformed CSV data.