Add sanity check.
Fix permissions.
Initial commit of main document.
Fix dictionary links.
Copy more stuff in place.