Addressed some issues with the perf tests and added documentation.