Update variable declaration
Make comment more descriptive
Fix flaw in random generator return
Add path prefix to path generator
Account for path prefix