Saute onion in oil for 7 minutes. Add garlic and ham and saute for 5 minutes. Add beans, salt, pepper and cilantro. Saute for 5 minutes. Beat eggs and pour into pan. Cover the pan and simmer for 7 minutes until the top sets. Cut into wedges and serve.