NF: added tets, set commandline interface default to weightsum=None, small cleanup