added sleep, cleaned a little of the docs, probably broke other things.