Fix passive and mutable checks
Change bash to sh
Add some output formatting
Cleaner quit method