Added testing code to check option functionality
Finished qdb