bug fixed and rewrite readme
Merge pull request #1 from amat27/master

bug fixed and rewrite readme