Fix a couple things

Everything should work now, except for the mysteriously not-working
open() command.