add chmod and remove sudo
correct some refactoring
Merge branch 'master' of https://github.com/abenbachir/CodeRefactorBundle