It works!
These changes have made the aerocore work. It could use a little cleanup though...