Implemented opening and closing of files.
Argument 2 of 'file.open' is now optional and defaults to "r".