Two small fixes

Missing #import added to one of examples for those who decide run example in Xcode.
Wrong var declaration fixed in another snippet.