Ported All File Stuff

Also fixed a ton of errors.