add header comments and show time elapsed