Added matrixmultiplication method and corrected present methods.