fib_rules: fix formatting of functions and comments