Removed a good chunk of splint errors as well as fixing stupid printf issues.