Updated README.md
Fixed a bit of potentially troublesome code.
Fixed some uninitialized fields.
Fixed some more improperly initialized values.
Added braces to if structures.