File initial

Most of the code, minus the functions.