Simple output

* Added a flag to output single-dimension arrays which are useful for passing arrays by reference in the arduino environment
* fixed a bug where the last character of the array def were being written to console instead of to stdout
* did some minor cleanup