Reworked directory structure to be a node module