setting up pascal script
adding output dir
parsing output filenames
better output dirs
output dir works correctly
pseudocode