Added parameter to create folders; closes #16