Well it compiles, it just segfaults.
Formatting.
vera++ to clean things up, uninitializers. Still segfaults I'd imagine.
Working copy, a little function cleanup would be nice.
Styling.