Fixed and made states() and parents() as generators. Remaining: add_obse...

...rvation, remove_observation, type-checks for each function, raising customExceptions