Added Counterparty functionality and related create, delete and edit features. Also corrected some minor mistakes.