better handling of file path using boost
writing more information in speed-gap.txt output file