add rst-mode script (closes #198)