Added capture module.
Added exception handling to capture module.
Brought in unittest.