Added doc support for library. Also fixed some docbook issues