Added debugLog flag to module for conditional logging. Added TODO
notes.