Professional Fees deductible on Form 1041

I am a bit unsure as to what professional fees are deductible on the 1041 Estate income tax return.

I have a flat legal fee that covered the attorney setting up the estate, getting the Letters Testamentary, filing the SS-4 for  the Estate EIN number, and preparing and filing the Pennsylvania Inheritance tax return. Additionally, I have Probate Fees, Legal Advertising fees, postage, and Turbo tax software purchase.

Are all of these fees deductible on the 1041?

Also, are Pennsylvania state Inheritance taxes deductible?