First Code!

Also, major refactor.