code: function(code) {
      var lines = [];
      code.split(/\n/).forEach(line => {
        var segs = line.split(/(\s*#)/);
        var ln = {code: segs[0]};
        if (segs.length > 1)
          ln.comment = segs.reduce((c, seg, i) => i > 1 ? c + seg : seg, '');
        lines.push(ln);
      });
      return lines;
    }
docs: Removes trailing # comments, along with preceding whitespace Returns an array of objects (one for each line) to be passed to extractCode.