[Style] Corrected many style errors (mainly line too long)
Removed mostly copied code
REG1 REG2 REG3 -> REGx
[Style] checked and corrected