added copying of additional inputfiles; enhanced the example