Added prefernces XML directory and file
Added code to load preferences