add diagonal and angle and correction in code
Merge branch 'caract' of https://github.com/RichDCs/IRF into caract