Removed instances of fail! macro, replacing with panic!() or Result<T, &'static str>