Added a bunch of missing files and edited some. Still some runtime issues.