Change footprint output file from tmp/$ to tmp/$. Also add print 0 for non-read block between reads
add g option when compile main for debugging