add comments and adopt pwd
add code usage