Code style refactor.

Moved fields and automatic properties to start of classes.