Fixed typos and other errors preventing the plugin from compiling.