Flattened all files and fixed links to go to the right place.