added 'saveToFile()' function and updated all project