Added section on profiling and timing and made a few minor corrections.