Plugin branch Initial Commit

Reworking to produce a useful plugin.
version 0.1 - Working but ugly..