Added documentation for 'before' and 'after scripts'