Merge pull request #3 from gbbr/master

Switched to switch
Suggestion
Removed config structure
Forgot flag
unexported
remove empty lines
Missed the resolved path
Better path getter
Spelling fix
Better naming
Accidental leftover
Added handy profile setter back
I can't stop making changes
Updated comment
Updated doc
Added back Dave's comment
Simplified baseProfile
Moved profiling modes to their own type
Fixed comments, removed initializer and made MemProfileRate exported
Added logging condition back to avoid ruining it for everybody