Create files with default permissions for now.
Fix bug in putBuffer method.