fixing errors one by one. Still crashing when you try to run it though.