Minor fixes. Implemented multiple request handling by single thread.