guys, you're asking the questions that had been answered about million of times already on this forum, just you "Search"!
You can debrand your phone by flashing it with unbranded firmware.
Unlocking is much more complicated and I'm not sure if it's possible to do it "at home" for free.
Davinchi will unlock your phone for money. (the price you can check on there web site)