language changes: fixed warnings and doctests.