Changes to make it easier to repurpose this app.  For use in creating other flashcard apps.