Added ability to ignore directories

This fixes #94.

Comments/suggestions are welcome!

Thanks