Quizm Teach 4.1 [Cleaned Code]

-cleaned and documented the code
-minor bug fixes