Swap usage

I refactored the function swap_usage to use the same pattern used through the code. Fixed as well a typo from the original (swap_usage) function