Made code into a plugin and updated readme instructions