fixed up c versions to reflect questions
removing un-needed functions headers