Do you care to share more details? What questions did they ask and what were your replies?
For those of you who go through that, don't agree to the statement if they modified it, like mine. There's no cameras or recording devices so they can be dirty, and they abuse that fact. You have no rights at all at the border, and your assumptions on decency and honesty are not correct.
My assumption to this day is that they thought I was trying to work illegally, but this is not the case.
So you told them that you were there for visiting/tourism, and they alleged you were coming to the US to work, on the basis that you're applying to jobs in the US?