Apply coding style, gen docs