Fixed a lot of MD issues