cleaned up the tab code and removed all comments that aren't useful