add missing dtds, clean up resources, fix warnings