Updated documentation and fixed some MD bugs