Finalizing code for extended review, commenting, and testing.