enhancements and bug fixes, new version of checkfiles.py
added counter
newly working version MUCH FASTER!