Cleaned up example and updated it to latest libs.