vm: check fscanf return code.
as: check write return code
.travis.yml: initial Travis CI file