Don,
Thanks for the advice and I got a copy of toolmaking so I am going through that now.
Mathieu, thanks for your advice and efforts also. I will give those a try and let you know. The reason a header is used is because it is just a single column.
I think im going to go through the book and then rewrite the code, try and break down into its necessary functions as mentioned above, then rebuild the code calling those functions so hopefully its abit more dynamic script and also not so repetitive.
Thanks,
Adnan