Added code to be able to choose between KbCheck and KbQueue.  Broke out condition definitions to make experiment code cleaner.

Fixed 2 bugs with stimulus generation that ignored preStim duration