Added debugging into to legalvars + small bugfixes with edit articlepage + imagelist