Added method to directly get the currently running and resolved modules.
Fixed loading of function blocks from command line, minor changes in some other files.