fix options bug, add test case and readme, release v0.3.0