revisions to second version

adding support for commands to and from electric imp