fixed warnings updated examples