works. same cCnt,iCnt,reg and stack vals as the working model
Everything works. Code is commented and cleaned