Refactor and document the lib/ folder

5 jobs for 6-dokumentation-des-repos in 1 minute and 4 seconds (queued for 7 seconds)