Merged two iclass-reader functions into one to remove duplicated code, update loclass library with hash2 algo