Uncommented the entire getSparseCoefficientsCode and fixed. There seems to be some problems with the calculations so we'll have to do a test pattern trial.