Fix the type

Get rid of flush and all setters. Extract the check into insync?. Add
sync to call out the necessary bits of what used to be flush.
Merge pull request #1 from mhaskel/type

Get rid of flush and make everythign better