Added sha1 class, fixed bug in hash class and udp socket class.