Refactoring plugin loading and init procedure. Closes #10.
Remove useless global keywords