Added primitive command-handling: can now read a file into a buffer.