Initial commit, fixing errors and making the mod load.