Update data_switch.py

Removed unnecessary methods from data_switch.py.
Cleaned up the code.
Added a few basic comments.