What are the fundamental beliefs of Ahmadis?

It is in Hadith that once during a military expedition a man, when he saw the Muslims, said: “Assalamu Alaikum, there is no god but Allah, and Muhammad is the Messenger of Allah.” But a Muslim killed him, thinking that the man had proclaimed the Kalima just to save his own life. When the Holy Prophet heard of this, he was very angry, and he reprimanded that Muslim. But he replied:

“O Messenger of Allah, that man read the Kalima merely to protect himself from our sword.”
The Holy Prophet said:

“Did you open his heart and look inside it?”
A companion of the Holy Prophet asked:

“If a man (in battle) attacks me and cuts off my hand, but when I attack him he recites the Kalima, can I kill him in these circumstances?”
The Holy Prophet said: “No.” The companion said:

“O Messenger of Allah, he cut off my hand.”
The Holy Prophet said:

“Despite that, you cannot kill him. If you do kill him then he will have the rank which you had before you killed him, and you will have the rank which he had before he recited the Kalima.”
In another hadith it says that the Holy Prophet said:

“If a man (in a battle) is attacking a kafir with a spear, and it has reached his throat, and at that moment he says ‘There is no god but Allah’, the Muslim must immediately withdraw his spear.”
Another hadith records that
“to abuse a Muslim is an act of wrong-doing, and to fight a Muslim is an act of kufr.”

Article 298-C of this law states “Any person of the Quadiani group or the Lahori group (who call themselves ‘Ahmadis’ or by any other name), who, directly or indirectly, poses himself as Muslim, or calls, or refers to, his faith as Islam, or preaches or propagates his faith, or invites others to accept his faith, by words, either spoken or written, or by visible representations, or in any manner whatsoever outrages the religious feelings of Muslims, shall be punished with imprisonment of either description for a term which may extend to three years and shall also be liable to fine.”