fixes where some lines in plots end
tweaks formating and allignment