Fixed a few input bugs
Fixed putting infinity/NaN into memory