Here is a quick explanation/tutorial on how to punctuate (use commas, periods) with adverb clauses.
adverb clauses
Adverb Clauses and Dependent Clauses from phricee This is a quick way for students to understand the difference between dependent and independent clauses. This particular example focuses on adverb clauses.