updated sphereical to cartesian and chord functions