Improved API. Improved accuracy of blocking timeout. Added options
updated readme