galaxy backgrounds, and tidied up the transition code