Added measuring time; fixed minor bugs
Script is now working on all files in input directory instead of only a single file.
fixed minor bugs; added storing values in files
minor tweaks
minor changes