Many code and documentation improvements. 

The WMS lib starts to look clean. Finally.