Added Gallery function

Added gallery function and refactored somewhat. There is an example
available in the test directory. Also added documentation for the
method in the readme file. Also fixed an error in the readme file where
the section for audio was mislabeled 'photo'