De-duplicated code for initialising modules as mentioned in #3
Added display name and description fields for modules as mentioned in #1