changed md5 to hashlib module
added testing function, added feature selection method