Have a read through here.
Just to add to this - to make things easy when upgrading, if needed, mark your comments: Example - <!-- Adapted 15/06/09 by Point and Stare //code is here end comment -->