Resolve some internal language inconsistencies, correct a few minor errors, and document the 'ready' event.