Documentation (work in progress)

This PR is a work in progress (don't merge it yet).

It adds documentation to the image package. It also fixes some documentation strings in the init.lua file.