Functions

This section describes different functions and scripts in the code.