Guidance on how to write and import your own Widgets can be found in the Homepages section of the CMS manual.
Fields marked with * are required