Surprisingly it was very painless as you said!
I just read that I won't be able to buy my onward ticket from Pingyao to Xi'an at the Pingyao station as the station is too small--it must be bought at a major city (this is according to the hostel I will stay at).
Can I buy the next leg of my journey (Pingyao to Xi'an) in Beijing?