Fixed bad references due to splitting out the code into seperate files. New dist files