Fix 'make distcheck' and add lost document template