add flag to recurse into subdirectories

Was wondering why this did not work. Fixes #58
Yes, or in a little helper function in this file depending on how much work it is.