correctly read costs attached to classes

(with a test to prove it)
fix: ignore namespaces
feature: updates can be weighted by confusions
tweak includes in setup file