Implemented hash and hashfile