Stop breaking the notifications' order
Cleanup; added comments
Simpler way to monitor status bar visibility