Loadexec: fixed compilation, added documentation