adjusted to Agda 2.4.0
completed change from predicates to families
removed one TODO
all done!