typo in readme
some refactoring
major re-write. hope this thing works!