Adding OpenPath and ClosedPath classes; cleanup