Updated file permissions and added better file open mode