Added preferences window
Added more preferences, slightly nicer dialog layout