fix indentation typo
add factory method to construct object from bare args
add example code and docs