Added ability to add a directory. Closes #3.