Welcome to HCM.
The doctor has given you the right prescription. Please follow it as advised. In addition drink plenty of water and add more fresh green vegetables in your meals, to prevent stools becoming harder, avoid strenuous jobs and you may use ointments
for piles for local application. If the piles are severe and bleed frequently, then you will need cryo-surgical treatment