Implemented hash function and changed some comments

ToDo: Set max size for the byte array