fix doc & code formatting