getbrewtime() and logdata() functions added