added the ability to add custom paths to source files when passing in an array of file contents

This is in reference to the issue #452.

This is really my first attempt at a pull request in this repository, so if there are any additional modifications I need to make, please let me know.