Update plugin code to meet standards of Motionmill plugins