improved dectab and gswitch analyses; added new tests