Bulk core of module added

Added the meaty bits of the module to the file