updating removal of some old files
changed check against errors to count errors, rather than to count components