Add Get/Set for Compaction Mode flag in config

Also add new error messages in error.go