Started plugin

Here are a few additions that make the plugin work minimally.
Still has much work ahead.