Code reorganization

Just moved some code around and renamed executable from ‘flashcard.py’
to ‘flashstudy.py’ since PyPi already uses that name.