why was the declaration of independence written and who wrote it?