Fixed Setting to read from config

They are now properties and read from config file