nitpick fixes, pep8 and fix math equations

mentioned fixes.. merge to your branch then we merge from there. my git keeps timing out right now so this was the only way I could get it to work

:+1: