CSV and misc. fixes

Modified jigsaw to use the ruby 'csv' library
Fixed some spelling errors
Applied some ruby-standard rules to the code, to make it cleaner