Fixed mongoose requiring bug
Changed config implementation as part of issue #10. Now making use of configuration variables
Cleaned up code