Moved function prototypes to the correct header file and made sure the section array was large enough