Updating td_stats utility to compute lower bounds and use getopt for safer input option handling/error checking. Note: changes to scripts which call td_stats may be required as arguments are now passed using flags and no longer have a required order.