Added arguments size check and started design document.