Added auto-update

Added auto-updater
close #1