created dst2 function

much cleaner now
class complete but buggy

phi is there, E field not working