Massive code formatting

Massive code formatting
Preparing for commenting code. The functions and procedures is not yet
available