What did Espionage Act and Sedition Act do?

the espionage act states that anyone who interferes with the war effort will be fined $10,000 and imprisoned for 20 years.