Added tutorial, fixed some stuff

Fixed some bugs in the tutorial program because peripherals cannot read
from file mounts.