minor delint, and adding the first calc function, also importing math module