Adding more docstring and do refactoring.
Bump to 0.1.1.