Improve writing the index, add installing to readme.