Changed addSubject, alchemy, and getsubjectparams

changed so that it specifically works with output22