added comments to source code
Update reserved URLs from 'gallery' to 'galleries', fix tests.