adding support for explicit unloading of modules
improving initialization of header
trying to improve performance of module change
fixing wrong property access
fixing wrong parameter access
improved way of handling unloading appears to be working