code cleanup
use code_lbl prototype for optimizer structures
various prototypes correction