Updated some of the code.  Added comments. Added some new methods to PathUtils.