First off lets start with the basics.
1) Smell is reasonable suspicion for a search... United States v. Johns, 469 U.S. 478 (1985); I suggest your read this case to fully understand the precedence, just google it.
2) It's important to realize that there are factors that could negate the...