added md5() function, improved UI and function handling