qafile works. Fixed a few bugs in qabatch. Logging handled