finished labelling class plus tests
EM for HATs, description of algorithms