spfs_larnes.m is the main procedure. There are much space for improving the code.