Change attributes on files.

Make non-writable values have non-writable files.
Make all files only writable by root.
Return errors if we fail to write MSRs
Merge pull request #1 from thatcode/patch-1

Change attributes on files.