added psychometric and ss simulation functions