Fix and improve adding a Lape section to functionlist