Added phpdocs
Code cleaning
Improved protected variables names