Yes, there are toilets at the end of every carriage.
There's no Wi-Fi on board, and mobile signal comes and goes on scenic routes, so download anything you'll want in advance.
Power sockets are limited, around two to four per carriage and not at every table, so please don't rely on charging on board. A charged phone and a power bank are the safest bet.