added primary code doc