-added cruve calculations and sample script