added code to emit while loops
added --halt option to not run forth code that is emitted