In my opinion, the rules of the GPL are fairly straight-forward. You can use the code to do whatever you want. You can keep your modifications to yourself without restriction. If you distribute your modifications they must inherit the GPL license, meaning you must give everyone else the same rights that you enjoyed.
And finally, you may not remove the copyright from the template.php code.
I think that sums it up.