Added functionality to compute calculations on multiple files within directory