Added method pluginReady
Fixed focussing issues
Several intermediate changes