added docs + fixed bug on cdn