Corrected types; reconstruction almost works now on the web app