curul_time code cleanup and docs