Cleaned up code to remove compilation warnings
Fixed bug with output under Linux due to separator being stored as a character
instead of a character array.