Added a couple more things so I can move forward

Added the various rules, signing key, etc. And turned on the code
contracts, etc. Also fixed a couple of issues that the code analysis
found.