Transferred some functionality from rmcsv2hdlcsv.rb into new library dspace_utils.rb