Added generator of enum type bindings.
In write_enums: made missing values more detecable.
Filled file enums.txt.
Removed old unused code.