rename 'param' to 'time'
rename 'param'->'time' and 'position'->'location'
add distance functions and 'totime'