Minimized inputs and outputs, implemented new maxent algorithm