Always keep your eggs in the fridge, in their carton. As eggs absorb any strong odours around them, keeping them in the carton prevents this from happening.
If you want to hard boil your eggs it’s best to use ones that are a couple of days old, as the shell peels off a lot easier.
In order to keep hardboiled egg yolks intact when slicing, wet the knife blade with water before each cut.