I am embarassed to say that I have not done anything with USB. Yet ...
So all I can do is point you to something from one of the masters that may help.
http://www.picbasic.co.uk/forum/showthread.php?t=5418