I was able to revive the phone and unlock it too. I did not flash the main, all I did was use SIMLockPatchGen_v2.1 to make a new unlock patch and apply it to the phone and it worked fine. I have to be more careful next time.
Thanks guys for all your help.