math classes cleanup + copyright