fixed bug realTimeCounter and added multiple selection of files