Fixed enums and other bugs, more scripts now load.