[doc] Some proposals for code organization and style