Moved maindoc to index.