fix bugs, add grunt, travis, refactor, release 0.3.0