Code fleshed out

Now load modules and plugins correctly