update bandwidth.c and modularized function
added file ptr and comments to latency.c