Rule generation & exceptions

- rule generation from classifier almost completed
- deleted wrong logic_error, used instead runtime_error