To flash the firmware
1. Download and instal 7zip/winrar on your PC
2.Download Odin
http://forum.xda-developers.com/attachment.php?attachmentid=611625&d=1306787405
3. If you don't have kies installed on your PC instal it from Samsung
4. Right mouse click on the ics firmware you have downloaded and select extract. You should now have a .tar or .tar.md5.
5. On your phone go to settings, applications, development and tick USB development. Now turn off your phone.
6. Hold power, volume down and menu until your phone boots up.
7. You should be asked if you want to continue into download mode, press up to continue.
8. Make sure kies isn't running I'm the background
9. Open Odin on your PC
10. Tick pda and add the .tar/tar.md5
11. Do not tick or untick any other boxes
12. Connect your phone, still in download mode to your PC and press start.
13. Let me know when you're done and I'll help you root.