Main logic fixed, slightly more organized

Implemented __str__ and __repr__ in Interval (mother of all classes), finally improved the main loop, and made find_features return a dictionary of found features.