Sympy version 0.7.1 and code cleanup

Make symoro compatible with sympy 0.7.1 (only necessary change is zeros(r, c) --> zeros((r, c))).
+ a lot of code cleanup