Issue16 addressed

I've updated the code so that the inline code editor is updated when new queries are added or the user switches between the defined queries in the preview area.

The 'selector' drop down still needs to be updated appropriately but this is a bigger issue and it doesn't work at the moment anyways. Issue #13 will address this outstanding issue