Add support for recursion over directories

Closes #3