fixed calcRoute, added global object, added place and places classes