Add DebugMode and api testing files