produce an escript and added table formatting