added example code for generating documentation