Clean up doc directory and add dependency licenses