code comments added

code comments added to all the files
bug fix in join group