Added comments explaining the insertion sort.
Added checking for error for elapsed time if the timer hasn't run.