refactoring

added xml comments, moved extention method to member method