More polishing of BaTLab code, fixed SPECFEM1D test, initial work on CitcomS test, bug fix