implemented multiple qbfiles per tyfile, also fixed some time calculations