comments and adding more IO

add comments and add more IO