fixed xlInitiateMatrix function
various linked fixes