exception handling added, api for transportation, average added