 # Exec
 executor = new Executor()
 module.exports.exec = (command, cb = (->)) ->
+    if debugMode
+        return debug "executing #{command}"
+
     executor.execute command, cb
 
 # Read
 read = (filepath) ->
     fs.readFileSync(path.join path.dirname(module.parent.filename), filepath).toString()
 
-module.exports.read = read
+module.exports.read = (filepath) ->
+    debug "reading #{filepath}"
+    read filepath
     
 # Write
 module.exports.write = (filepath, content) ->

    
# Template
module.exports.template = (filepath, data) ->
    template = read filepath
    mustache.render template, data    


    
    else
        console.log "[\x1b[32mMajordomo\x1b[0m] #{command}\x1b[0m"
        
debug = (message) ->
    if debugMode
        console.log "[\x1b[33mMajordomo --debug\x1b[0m] #{message}"
    

# === Executor ===
