Add gallery
Typos and bug fixes, and add js resource mapping