Fixed bugs. added autoupdater