Some doc added and some bugs found and corrected