Some minnor changes to index and script