Changed docs and added sync()