Refactoring, ajout javadoc