add STA, STC. fix PSTH plotting for some extreme cases, add extra error-checking for trial template