STARCOS: Fixed return codes and added 1000 byte limit to hash inputs