implement main and commitVersion
implement logToFile