Implemented home planet upgrade fixes #16