Refactor according to FxCop

The Microsoft Tool FxCop reports issues in a number of fields for the
produced assembly. Most of the current issues are due to the initial
state of the project. Try to minimize them.