Are you still interested in simplifiying the code and making it open source? I'm just now really getting into autolisp, with the intention of doing cnc programming with it. I think that I have a pretty good grasp on what needs to happen. Over the last couple of weeks I have done a lot of research in autolisp and found 3 or 4 lisp routines that are for generating g-code from autocad. I'm using autolisp to open up external applications with the intent of editing g-code with a dedicated application.