Added getDistance() & toRad() to api.java