Nested path support

I believe this resolves #10 by adding support for nested paths as described in the issue.