fixed critical bug in sparf.m, minor changes in getLCM.m and getRad.m