Prefrences added & Main file updated