tidies code
creates histogram and updates plots
potentialy fixes float problem
adds quick check for length of outputs, not yet done
wipes log.csv