Readded tests for s and perm multiplies. Used basic multiply operations to make multiply and inverse.