Added error checking to sf muni example and added security rules example