localise counter variables
added new fix-html-entity.sh. updated README