Moved a couple of functions to QLEcot

Also, found some problems with the StylesheetModule.