Standardization of coding style and minor fixes

Primarily for source files that are related to the storage system.