Attached is a document detailing the most important aspects of the code.