Some work on checking for updates (#1) [ci skip].
Some minor cleaning up [ci skip].