Added style guide.

I looked around the codebase and wrote down what appeared to be the style conventions in use.
By `Catch the error here` I assume you mean it cleanly segfaults at that location?