changes to optim formatting

<- vs =, indentation, logical. Small aesthetics I noticed while reading
through.