No wildcard imports anymore
Cleanup with logging, tested version.
Logically separate plotting and output

Before the plotting of the curve happened at the beginning and the end
of the file and the output in the middle, now it's more logically
separated.