Fixing warnings.
This fixes clang Illegal Instruction errors, as well as puts in the return statements that were suppposed to be there in the first place.