Add active_duration script
Refine active duration script, add first and last spike time distribs