Adding Error metric

Addresses GitHub Issue #17