Changed: use output encoder class
Changed: reformat
Changed: simplify sheet_id serial file
Changed: fix typos and add comments