Add a logger object to handle console.log calls for varying log levels
Add logger to tests as well, and change two logInfo() calls to logDebug()
Change assoc. map array to use an object