Freeze fixes

Model would freeze if a given current density would not be sufficient to reach rated power - the program now recognizes impossible current densities and stops with an error message, diagnosing the current as too high or too low.