Update error handling
Add luhn validation to library