Fix bug in writef

Without setting `output(fh)`, the method was broken. It didn't properly
direct output to the desired filehandle. Now it does.
Remove simple_write and don't import print

Lua's print method *always* directs output to stdout. So, that's a no-go
for what I wanted.
Standardize how I add the newlines