Actually the answer is D. A is missing a comma. B is too. C shouldn't have a common after the word famous.
Answer: When Sheila and Laura got home, her dog was waiting by their front door it was wagging its tail as hard as it could.
Explanation:
Hope this helps.