Flap: removed older duplicate
calculate_surface_angle: align to angle frequency

Added docstrings.