Jailbreak Recovery?

Hello,
I have an ATV2 with the newest IOS and would like to know if it is possible
to recover it to original after jailbraking it in case I woul like to sell it
will it be recognized that the device was jailbraked and installed with
“foreign” software? Another question I would like to know if it is possible to use all original Apple functions e.g. iTunes Match after installing aTV Flash (black).
Thanks for your information,

Installing a stock iOS on a jailbroken Apple TV will remove the jailbreak and set it to factory settings. Installing aTV Flash will allow you to use all native functions of the Apple TV whilst adding more.