Added exception handler
Added comments
Mutex with timeout is implemented