clean math, add some transformations, start plotlib