updated to ignore class files (redundant as in target directory) and the target directory