Addition of goals in the motivation, requirments and chage of pseudocode for diagram