added md5/sha1 hashing function, implemented better keyboard dismissal