Rewrote Path class, and some syntactic changes.
Updated documentation