beep, some maths for REF, cleaning 

· each options ends with a beep
· --REF now following the rules
· some cleaning (indentations, blank lines