Fixes problems in reST documentation