add readme content and modify source code formating