Added some comments to the code.  Also added reload functionality.
Added output to console in a device reload.