minor doc changes and fixed InvertedPendulum reward function