added processing refFL

added function comments
added message specifications
some renaming