added scaling to y values for svg chart
moved some stuff to there own word .. changed a few names.. tring to refactor a litte here