added morphfit and distance calculator as new functions