fixing a space that shouldn't be there
update to use promise and move some duplicate code into it's own function
adding mock for testing
API fixed
fixing bug that caused only local trains to show