Created an empty preferences window (#193). Also some minor cleaning up.