Add doc string and invalid argument check. See #10
Drop Python 2.6 support
Merge pull request #11 from kevinjqiu/issue-#10

Add doc string and invalid argument check. See #10