Refactor and document the lib/ folder

5 jobs for 6-dokumentation-des-repos in 6 minutes and 3 seconds (queued for 5 seconds)