Which of the following sentences is punctuated correctly?
A. Murray went straight home; after he reached his house, he realized that he hadn't brought his homework
B. Murray went straight home after he reached his house; he realized that he hadn't brought his homework
C. Murray went straight home after he reached his house, he realized that he hadn't brought his homework