updated doc and style