debug output added
stack rewritten and some NOPs added