Added better error handling to the interface claim call in flashprog
Written read/write routines for talking over the USB endpoint