Added "Node_Type" variable to indicate the type of the host: Master/Computing node
Modified some spacing
Made a wrapper function to record log file