First draft of scripts and functions chapter done.