Fix bug on issue #6
add doc for issue #6