various updates
added a regret function you can minimize