Add docs and specs to exported functions