add sample for handling errors
write user guide