Finished input, added md5 hashing

Major input refactoring.