move package to flams, add simple-loop actual code and tests