Refactored special surface reactions and clamp code.
Minor code cleanup.
Minor bugfix.