Jb/unlocked 3GS 3.1.2 crashed and want to upgrade

My iPhone just crashed and is stuck on apple logo and although I can easily restore and jb/unlock back to 3.1.2 I am tempted to do the upgrade to the jb/unlock 4.0.

Is this recommended to upgrade to 4.0? I heard that it's extremely buggy. Can you please direct me to the tutorial of the easiest way to do so? Thanks!
Search, search and search and you will find what you're looking for

http://forum.tipb.com/showthread.php?p=1606386&highlight=Jialbreak+Matrix#post1606386

Original thread: https://forums.imore.com/threads/jb-unlocked-3gs-3-1-2-crashed-and-want-to-upgrade.196272/