Fixing NSLog statements which should be YDBLog statements.
Documentation improvements, and removing unneeded casts and asserts.