This is HORRIBLY documented. I'll add some links.