language changes: ~self method is gone; fixed several warnings.