Got plugin working

Started to build mostly from ground up.