Merge pull request #39 from daniel-murray/master

Issue 9 & 39

* expose cvar to allow pyro
Issue 4

* Removed some unused define structures
removed command listener for build in plugin end