phase 1 of nloptr
finish adding docs for optimizer