Revised errors in TMan, modified FileIO output position of task end time

Now TMan can be excecuted to get samples, and the ranking function seems
being implemented correctly. However, the evaluation statistics still
need to discuss.