Made some improvements, added thousand separators in legend, added more documentation.