Added options: ignore suffixes, keep window open

Added option to ignore suffixes (e.g., a.alt would get the metrics from
a).
Added option to keep the window open if you want to do a series of
operations and not re-invoke the script all the time.
And some minor code cleanup and streamlining.