Fix index.php, update Readme and add license

Previous commit borked.