clean up code, update sidebar output fixes #25
if value is percentage, format as %, fixes #26