MAJOR overhaul of the documentation