Updated with the foreground/background colour vars. Hopefully not missed anything.
I have also added some more documentation direct to the repo.
And here are the previous posts for reference: