improved handling for exported pages + added documentation