added docs and removed unused macro