Start of code cleanup.
Removes redundant if statements, casts, and more.
Cleanup PlotMe class setup.