The widgets in the Dancing Goat sample site are definitely a good place to start, so I would recommend trying to debug your custom widget to find out what's going wrong.
Aside from that, it's a good idea to learn the internals of custom MVC widgets, and the best way to do that is to build one from scratch- this will give you a solid understanding of all the files and how they work together. You can start here.