Ferror

Small fixes to enums, stdio, error reporting, and word size

@chathhorn please review
Looks like you should remove "putchar" here too. Looks good otherwise.