Added detailed documentation (appledoc).

Signed-off-by: Esteban Torres <me@estebantorr.es>