more issues fixed. More updates are required, see notes.txt
updating counter example