Added new error codes.
Added scale factor to complex multiplication function pointer.