catch up on documentation

* improve documentation for Secure Protocol
* remove some dead code
improve checkout page

* client side implemented by zelahi