Removed 1.htm, improved method of controlling pin, tidied code of index.