A bond is a contract created and sold by an "issuer". The issuer can be a government or a company. Ownership of the bond entitles you to payments from the issuer. The specific number and size of payments varies from bond to bond. Once the issuer sells the bond to someone, that person can sell the bond to anyone else they want.
A credit default swap is a contract between two parties (neither of which is necessarily the aforementioned issuer) that are usually called the protection buyer and the protection seller. This contract is made in reference to someone called the reference entity. The protection buyer agrees to make a series of payments to the protection seller in exchange for the protection seller's promise that, in the case of a "credit event", they will give the protection buyer either some specified amount of money or some specified amount of bonds. The nature of the payments and the meaning of "credit event" vary from contract to contract, but generally a "credit event" is understood to have occurred if the reference entity (which is always an issuer) fails to make payments on some of the bonds it has sold. Either party in the contract is free to find someone else to take up their side of the trade at whatever price they can negotiate.
The only thing you needed to know to understand that was what a contract was, but if you want to understand macros, you really need to know what an interpreter is.