Fixes two warnings about missing function header declarations
Fixes missing newline and end warning