Added the documentation and completed parts of the PAN library