changed Module provider object to allow reinitialization
added chdir in active module loading to avoid working directory related errors, reinit of modules should work from anywhere now
wrote decorator to wrap the chdir better