fixed bug in mark_event
better instructions for trial