rename configuration methods and add sample code doc