fix bugs

1. null point exception
change the code
.'
add a example of how to use this object pool to create a thread pool