Core MatLab code of the project; no inputs or outputs are located here.