branched optim2
updated ref file, initial guess and height of sin to 1
made optimization run
added cost tracking and animation/plotting code
solved huge bug
trippin t