Mobile version

Plus assorted bug fixes