added support of instance csv files, time, fixed bugs