Added final function - doing it all!

function multiple allows this process to be run multiple times over
multiple processors. Needs tweaking for filename structure.