Added auto-updating and trying to fix a few more bugs