additional error checking

 - add example with no productid for testing
 - add hostname/ip to config dictionary
 - add print statement for verbose output
 - additional tests