Updated the documentation. Added a unit test. (#390)
Merge branch '#390' of https://github.com/GalSim-developers/GalSim into #390