Generalise hiding functions
Merge pull request #1 from wombleton/master

Generalise hide/reveal functionality