Moving style to its own document class.

More changes will be made soon to make it a bit more class-like.