added files and directories for testing

fixed error in if statement
make all files under the directory group writeable too