generatesStim removed & minor bugs fixed