Adds tmp directory for testing purposes.
moved tmp directory
Moves notification setting to hook_node_insert and fixes bugs with logic and paths.