Mostly fixed the path looping problem. Deleted unneeded files and moved the resource code into its own folder.