add sample apikey
add some error checking to giles