Fixed rhwrite and added a basic shell script to code/javaCD4 to automate the copying