removed unnecessary lines
added documentations