[eluser]WanWizard[/eluser]
It's difficult to create samples of a widget, since the way you code it greatly depends on the design of your theme/template system and the way you want to integrate your widgets.
Modular CI comes with an example module that shows most of the options, there is a large readme with an explanation on bitbucket, and it includes a test controller to run through all types of files in the example module. And if you have questions, there's a discussions link on the wiki page, where I'll be happy to answer them...