Fix comments and unittest for market.py and style and docs links

Trying to make the right commit to  the develop branch.
This might possibly raise ```AttributeError: 'NoneType' object has no attribute 'get'``` if ```contract_body.get('Contract')```` returns ```None```.