Messagequeries

Comment and message queries & classes added. Some minor fixes here and there.