QXlib update and several improvements to file handling. Some bug fixes