adding find-max-degree
adding some comments