Implemented functions to unload, instanitate and free modules