updated name of of variable
updated constructor
working on setting up tests
tidying up the plugin wrapper