add function for filtered file reading

and use this for subdirs

the function strips off comments of the following format:
# shell style
// and 
/* C style */

comments can be everywhere in the file, not just at the beginning of the line