I've written this one as a HTML file 'cause it's easier to follow, and can be downloaded and kept for reference... that is, if its any use to anyone!