small style changes and api docs fix