Getter method "path" will now return the path object.

Fixed "Control reaches end of non-void function" warning.