Changed default usb context to application specific context
Changed usage of malloc() to calloc()