the pain , loneliness and insecure of the screenwriting process are vividly and painfully brought to slovenly life in this self-deprecating , biting and witty feature written by charlie kauf man and his twin brother , donald , and geared by spike jonze .