Removed some old testing code & Fixed Out of Bounds when there are no URL segments.