Fix visualization output time

The visualization output still uses seconds rather than years even if
the “Use years in output instead of seconds” parameter is true, this
patch should fix it
Minor fixes to last patch
Merge pull request #4 from eheien/master

Fix visualization output time