Added licence, wrote base plugin