Made all header function declarations extern to assist the compiler