Improve optimizations documentation through docstrings.
Fix tuple noramlizations that was incompatible with OpenMP directives.
Code cleaning and reformatting.