added rst editor and file opening code