Implemented functions to unload, instanitate and free modules
Use helper macro to resize module_st