Adds the ability to do random-point generation, also fixes many issues with the plotting engine.