Update rules.markdown

Fixed markdown mistakes as well as some spelling errors.