Started to add preferenced gui. merged phils unfished changes