fix doc and formatting