small changes in templates: cycles changed to correct in F# & some other changes