Oh my, so much for breaking my no coding after 1am rule, should have stuck to it ;)
Thanks for taking the time to write this up, fixed the typos.