Support `recursive` option

It is set as true by default. If set as false, it will traverse just the
root directory given.

Closes #2.