implement pbapply for progress bars. Closes #7