Change code to read from property file,

 and fixed binding bug