add mac support and update docs