Fixed function naming bugs in getLW.m