Error handling

closes #6