added tests for convert units
add convert_units function
calc max length after dot added
draw_sides changed
added test for very close min and max Y-values
do not allow Y-scale duplicates