Adding better Safari support

Documenting code too.

Signed-off-by: Jarrod Payne <jpayne@webotomy.com>