Renamed method
Don't delete hash entries
Added whitelist error message
Added class constructor to InvalidParamsException