Refactored worker code & Fixed error propagation
Merge pull request #15 from klee-web/worker_refactor

Refactored worker code & Fixed error propagation