More fixes to readability, getRouteNameFromAPath returns array