Iris Smart Plug, IDE, my first device handler... Please help :)

These are the steps for using custom code. See if that clears anything up: