add comment

add comment ,doctsting and sort code