Cold atoms, cold molecules and lasers: photoassociation of cold atoms, formation of cold molecules and laser cooling of molecules