Added more info to Performance Tuning
Fixed refactoring
minor code style and phpdoc fix