- implemented "plotting the distance from the starting point of the ruler" shown on the X axis.
- also some extracting of methods for better readability