Fixed some minor issues
Added string key support for compact