Comments added,not necessary variables elimination, name refactoring