HC parameter calculation changed. Bugs in GUI fixed.