Changed everything... Fixed alpha and beta derivatives, updated minimizers, fixed lots of other stuff