Moved functions to LongTermUse

Moved closestval and cmpplot