Feature/segment validation

Added exception handling for user-created segments, which can contain errors, and also made console output a bit clearer