doc: add documentation and man pages