Moved the order in which it checks for branch and then stashes/applies changes.
Improved the way stashing works with confirmation messages/