Changes to workround permission issues. All files now written to public files directory. Currently installed on test site and fully functional.