Updated embed code and api fixes