Organized and redefined methods names

As advised, commenting for methods and renamed the methods with good
names