Update user_functions.lua

added ability to check state of debug_mode and show_swaps