add documentation for the flap controller