improve coding style
wrap long lines
improve docblocks
fix typos
refactoring : use temporary variable to reduce array-structure length
refactoring : use temporary variables to reduce array-structure length
rename variable