Added documentation so we know what the hell is going on.