Add remaining file-related functions. #21