Helper Function

Implemented a helper function, specifically docPath()