Remove hard-coding of root directory and allow for user-specification of this path.