Added .h files for controlLoop and procedures, and added function prototypes and include guards.