refactor by using ternary operator
move logic to private method
update README, add known issues
upgrade version to 0.1.2