fixed defining 'end' to work no matter what ws
minor fixes
counted do...loop
working do loop +loop i