removed save function, updated comments