Cleanup & Random questions

1) Cleaned up the exception handling code

2) Added the algorithm for randomizing questions upon user confirmation. It also stores the set of random questions in the database.