matplotlib plots and some small mods