Changed verbosity to print terms and total on one line
Added verbose mode to print term-by-term