Dump the main file

Github doesn't like me today, just gonna dump the main C# into this.