refactors animal quiz and adds documentation