added comments.  checked some parameters.  renamed some variables