What were the main teachings of the Mahavira?

Followings are the main teachings of Mahavira:

1. Person who wishes to know the truth must leave his/her home.

2. One must follow the principle of Ahimsa (Non-violence), very strictly.

3. One must not hurt or kill any other living being as life is dear to all.