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

Trying to make the right commit to  the develop branch.
```Python
'key': contract.get('key', ''),
```
Ditto with the following lines.