change params to int32
add a simple listener for clean shutdown
doc update
Merge pull request #28 from dustismo/feature/development

development branch