Added support for automatic updates

Close #41