refactor task from mostly functional to procedural. Added distinction between one/multi src files
add multi-file support