Govt develops master plan to revive rail sector