changed header comments in post-9.R
adding in the work for post 10
fixed buggy log prob