Improved dimension black list and block white list

to be more extendable, if needed
The config file would also be more readable