Added auto-updater. Fixed bugs.