Removed notes-specific functionality from module.
Removed the need for root dir creation, fixed some bugs in dir generation (new root != old root)