Added kwlist() function to documentation; added tests for the examples