Changed PathInfo-handling and added some comments.