Added save function to project