QXlib update and removal of a few unused variables