Create library, index file and change structure of project