added auto update checking

cleaner code, better indentation
checks for updates using mikedombrowski.com/pbtides-version