Changes on scientific notation

Forced exponential notation if number of digits
in number being displayed is more than 9.

Also removed unnecessary commas from some array declarations.
Fixes small typo
Adding option for number of digits

New option shows up only if you selected scientific notation,
and gives options ranging from Standart to 9-12 which determines
after how much digits number should be collapsed.
Merge pull request #1223 from erp-lsf/#247

#247