Who appoints the Prime Minister of India and what are their main functions?