Added docs to core, removed needless closures from request/cancelAnimationFrame