updated to accept '1' as true for a boolean
Merge branch 'master' of github.com:davidtsuji/sg-tools