Fixed IOError bugs, plus the error response for this bug. Changed the behaviour if the file submitted doesn't exist.