Finds the shortest path, support for multiple E's and exclusive S.  Provided ample comments and general formatting.