Update enter url to be relative

Made enter url for the api to be relative
Edit computing of stats

change the way point are calculated. Now one hour = 1 point