add some comments and indentation

add some comments and indentation