Removed Instantating Folder Paths by Reference

Removed instantiating folder paths by reference. This increases the
flexibility of the class but may impact performance negatively.