ensure safe_mode param is a boolean
Merge pull request #74 from jlambert121/safe_mode_fix

ensure safe_mode param is a boolean